package com.share.device.repository;

import com.share.device.domain.StationLocation;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * @author panweiwei
 */
public interface StationLocationRepository extends MongoRepository<StationLocation, String> {
    /**
     * 根据站点id查询
     *
     * @param stationId
     * @return
     */
    StationLocation findByStationId(Long stationId);

    StationLocation getByStationId(Long id);

    void deleteByStationId(Long item);
}
